package steed.ext.domain.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Role extends BaseRole{
	private static final long serialVersionUID = 1L;
	public Role(String name) {
		this.name = name;
	}
	public Role() {
	}
	
	@Column(length=64)
	@Id
	@GenericGenerator(name = "generator", strategy = "assigned")
	@GeneratedValue(generator = "generator")
	public String getName() {
		return name;
	}
}
